package com.xx.sg.own.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xx.sg.own.entity.CommunicationTerminal;
import com.xx.sg.own.mapper.CommunicationTerminalMapper;
import com.xx.sg.own.service.CommunicationTerminalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommunicationTerminalServiceImpl extends ServiceImpl<CommunicationTerminalMapper, CommunicationTerminal> implements CommunicationTerminalService {

    @Autowired
    private CommunicationTerminalMapper communicationTerminalMapper;

    @Override
    public Page<CommunicationTerminal> selectCommunicationTerminalPage(Page<CommunicationTerminal> page, CommunicationTerminal communicationTerminal) {
        return communicationTerminalMapper.selectCommunicationTerminalPage(communicationTerminal, page);
    }

    @Override
    public List<CommunicationTerminal> selectCommunicationTerminalList(CommunicationTerminal communicationTerminal) {
        return communicationTerminalMapper.selectCommunicationTerminalList(communicationTerminal);
    }

    @Override
    public CommunicationTerminal selectCommunicationTerminalById(String id) {
        return communicationTerminalMapper.selectCommunicationTerminalById(id);
    }

    @Override
    public CommunicationTerminal selectCommunicationTerminalByDevId(String devId) {
        return communicationTerminalMapper.selectCommunicationTerminalByDevId(devId);
    }
}
